<?php
/**
 * 开始文件
 * User: Administrator
 * Date: 2017/12/9
 * Time: 18:14
 */
header('Content-type:text/html;charset=utf-8');
error_reporting(E_ALL ^ E_WARNING);
defined('APP_ROOT') or define('APP_ROOT', str_replace('\\', '/', dirname(dirname(__DIR__)) . '/'));
defined('SYS_ROOT') or define('SYS_ROOT', APP_ROOT . 'sg-sys/sgfoot/');
defined('LIBRARY_ROOT') or define('LIBRARY_ROOT', SYS_ROOT . 'library/');
defined('ADMIN_ROOT') or define('ADMIN_ROOT', APP_ROOT . 'admin/');
define('SGLOGS_PATH', APP_ROOT . 'logs/');
require('helper.php');
initSys();
filterParams();
config(include('database.php'));
config(include('config.php'));